<?php
declare (strict_types = 1);

namespace app\api\model\v1;

use think\Model;

/**
 * @mixin \think\Model
 */
class ChangeUnitLog extends AppModel
{
    //

    const IS_AUDIT_ZERO = 0;
    const IS_AUDIT_ONE = 1;
    const IS_AUDIT_TWO = 2;

    public static $is_audit_type = array(
        self::IS_AUDIT_ZERO => '待审核',
        self::IS_AUDIT_ONE => '已审核',
        self::IS_AUDIT_TWO => '已拒绝'
    );


    const IS_TYPE_ZERO = 0; //转网
    const IS_TYPE_ONE = 1; //入网

    public function user(){
        return $this->belongsTo(Users::class,'exercise_user_id')->field('id,username');
    }
}
